package com.toidep.config;

public class Constants {

	// Application information
	public static final String APP_NAME = "ToiDep";
	public static final String TOIDEP_ANDROID_PREFERENCES = "TOIDEP_ANDROID_PREFERENCES";
	public static String PROTOCOL_HTTP = "http:";
	public static String PROTOCOL_HTTPS = "https:";

	// ===================== DOMAIN =====================
//	public static String APP_DOMAIN = PROTOCOL_HTTP + "//beta.toidep.vn";
//	public static String APP_DOMAIN = PROTOCOL_HTTP + "//toidep.vn";
	public static String APP_DOMAIN = PROTOCOL_HTTP + "//demo.toidep.vn";
	
	public static String API_PATH = "/api.php/mobile/";
	
	//=======================LOGIN================
	public static String LOGIN_PATH = "http://ioe.go.vn/mobile/sso/login.aspx";
	public static String AUTHORIZATION ="http://ioe.go.vn/mobile/sso/authorization.aspx?code=";
	public static String POST_PATH ="http://ioe.go.vn/mobile/sso/accesstoken.aspx";
	public static String POST_RELOGIN_PATH ="http://ioe.go.vn/mobile/sso/login.aspx";
	public static String POST_SCR = "59217aa9c3646b3cb4abb7141455903d";

	// Thoi gian toast
	public static final int TIME_SHOW_TOAST_MESSAGE = 3000;

	// ===================== REQUEST CODES ================
	public static final int REQUEST_CODE_LOGIN = 1;
	public static final int REQUEST_CODE_POST_COMMENT = 2;
	public static final int REQUEST_CODE_REGISTER = 3;
	public static final int REQUEST_CODE_VALID_TOKEN = 6;
	public static final int REQUEST_CODE_LOGIN_FOR_PAYMENT = 4;
	public static final int REQUEST_CODE_LOGIN_FOR_VIEW_ALBUM = 5;
	
	// ===================== REQUEST PARAMETERS ================
	public static String PARAM_REQUEST_USER_ID = "userid";
	public static String PARAM_REQUEST_ACCESS_TOKEN = "access_token";
	public static String PARAM_REQUEST_TYPE = "type";
	public static String PARAM_REQUEST_PAGE = "page";
	public static String PARAM_REQUEST_PAGE_SIZE = "pageSize";
	public static String PARAM_REQUEST_ID = "id";
	public static String PARAM_REQUEST_MODEL_ID = "id";
	public static String PARAM_REQUEST_MODEL_ID_2 = "model_id";
	public static String PARAM_REQUEST_KEYWORD = "keyword";
	public static String PARAM_REQUEST_COMMENT = "comment";
	
	public static String PARAM_REQUEST_PHONE = "phone";
	public static String PARAM_REQUEST_OTP = "otp";
	public static String PARAM_REQUEST_CODE = "code";
	public static String PARAM_REQUEST_NUMBER = "number";
	public static String PARAM_REQUEST_SERIES = "series";
	public static String PARAM_REQUEST_SERIAL = "serial";
	public static String PARAM_REQUEST_OPERATOR = "operator";
	
	public static String PARAM_REQUEST_USERNAME = "username";
	public static String PARAM_REQUEST_FULLNAME = "fullname";
	public static String PARAM_REQUEST_GENDER = "gender";
	public static String PARAM_REQUEST_BIRTHDAY = "birthday";
	public static String PARAM_REQUEST_CITY = "city_id";
	public static String PARAM_REQUEST_PASSWORD = "password";
	public static String PARAM_REQUEST_EMAIL = "email";
	public static String PARAM_REQUEST_EMAIL_ID = "email_id";
	public static String PARAM_REQUEST_OLD_PASS = "old_password";
	public static String PARAM_REQUEST_NEW_PASS = "new_password";
	
	// ===================== RESPONSE PARAMETERS ================
	public static String PARAM_RESPONSE_SERVICES_IMAGE = "services_image";
	
	public static String PARAM_RESPONSE_DATA = "data";
	public static String PARAM_RESPONSE_MESSAGE = "message";
	public static String PARAM_RESPONSE_CODE = "code";
	public static String PARAM_RESPONSE_ID = "id";
	public static String PARAM_RESPONSE_TITLE = "title";
	public static String PARAM_RESPONSE_INTROTEXT = "intro_text";
	public static String PARAM_RESPONSE_IMAGE = "image";
	public static String PARAM_RESPONSE_VIDEO_THUMBS = "thumb";
	public static String PARAM_RESPONSE_THUMBS = "thumbs";
	public static String PARAM_RESPONSE_THUMB = "thumb";
	public static String PARAM_RESPONSE_THUMB_80 = "thumb80x80";
	public static String PARAM_RESPONSE_CREATED = "created";
	public static String PARAM_RESPONSE_CONTENT = "content";
	public static String PARAM_RESPONSE_AUTHOR_ID = "author_id";
	public static String PARAM_RESPONSE_AUTHOR_NAME = "author_name";
	public static String PARAM_RESPONSE_STATUS = "status";
	public static String PARAM_RESPONSE_TYPE = "type";
	public static String PARAM_RESPONSE_HOME = "home";
	public static String PARAM_RESPONSE_HOT = "hot";
	public static String PARAM_RESPONSE_VIEW = "view";
	public static String PARAM_RESPONSE_URL_IMAGE = "url_image";
	public static String PARAM_RESPONSE_MODEL = "model";
	public static String PARAM_RESPONSE_MODEL_ID = "model_id";
	public static String PARAM_RESPONSE_MODEL_NAME = "model_name";
	public static String PARAM_RESPONSE_MODEL_DISPLAY = "model_display";
	public static String PARAM_RESPONSE_MODEL_ICON = "model_icon";
	public static String PARAM_RESPONSE_NAME = "name";
	
	public static String PARAM_RESPONSE_BIRTHDAY = "birthday";
	public static String PARAM_RESPONSE_PROVINCE = "provinces_id";
	public static String PARAM_RESPONSE_ADDRESS = "address";
	public static String PARAM_RESPONSE_DISPLAY = "display";
	public static String PARAM_RESPONSE_ICON_DISPLAY = "icon_display";
	public static String PARAM_RESPONSE_DESCRIPTION = "desc";
	public static String PARAM_RESPONSE_TOTAL_VIDEO = "total_video";
	public static String PARAM_RESPONSE_TOTAL_GALLERY = "total_gallery";
	
	public static String PARAM_RESPONSE_ICON = "icon";
	public static String PARAM_RESPONSE_BACKGROUND = "background";
	public static String PARAM_RESPONSE_TOTAL_VIEW = "total_view";
	public static String PARAM_RESPONSE_TOTAL_COMMENT = "total_comment";
	public static String PARAM_RESPONSE_TOTAL_LIKE = "total_like";
	
	public static String PARAM_RESPONSE_USER_NAME = "username";
	public static String PARAM_RESPONSE_PASSWORD = "password";
	public static String PARAM_RESPONSE_FULL_NAME = "fullname";
	public static String PARAM_RESPONSE_EMAIL = "email";
	public static String PARAM_RESPONSE_AVATAR = "avatar";
	public static String PARAM_RESPONSE_PHONE = "phone";
	public static String PARAM_RESPONSE_TOKEN = "token";
	public static String PARAM_RESPONSE_GENDER = "gender";
	
	public static String PARAM_RESPONSE_ACCESS_TOKEN = "access_token";
	public static String PARAM_RESPONSE_LAST_LOGIN = "last_login";
	
	public static String PARAM_RESPONSE_USER_COMMENT = "user_comment";
	public static String PARAM_RESPONSE_TIME_AFTER = "time_after";
	public static String PARAM_RESPONSE_COMMENT = "comment";
	public static String PARAM_RESPONSE_COMMENTS = "comments";
	public static String PARAM_RESPONSE_CAPTION = "caption";
	public static String PARAM_RESPONSE_TAGS = "tags";
	public static String PARAM_RESPONSE_GALLERIES = "galleries";
	public static String PARAM_RESPONSE_VIDEOS = "videos";
	public static String PARAM_RESPONSE_VIDEO_DURATION = "duration";
	public static String PARAM_RESPONSE_VIDEO_URL = "url";
	public static String PARAM_RESPONSE_ALBUMS = "albums";
	
	public static String PARAM_RESPONSE_NEWS = "news";
	public static String PARAM_RESPONSE_STORY = "story";
	public static String PARAM_RESPONSE_STORIES = "stories";
	public static String PARAM_RESPONSE_EVENT = "event";
	
	public static String PARAM_RESPONSE_IS_TYPE = "is_type";
	
	public static String PARAM_RESPONSE_CODE_NAME = "code_name";
	public static String PARAM_RESPONSE_TO_EMAIL = "to_email";
	public static String PARAM_RESPONSE_SUBJECT = "subject";
	public static String PARAM_RESPONSE_EMAIL_BODY = "body";
	public static String PARAM_RESPONSE_TEXT = "text";
	
	// ====================== KEY BUNDLE =======================
	public static String KEY_BUNDLE_GAME_TYPE = "GameType";
	public static String KEY_BUNDLE_GAME_DATA = "GameData";
	public static String KEY_BUNDLE_GAME_STAGE = "GameStage";
	public static String KEY_BUNDLE_NEWS_TYPE = "NewsType";
	
	public static String KEY_BUNDLE_REDIRECT = "redirect";
	
	public static String KEY_BUNDLE_VIDEO_PATH = "video_path";

	// ====================== IMAGEFETCHER =======================
	public static final String IMAGE_CACHE_DIR = "imageCache";
	public static final String HTTP_CACHE_DIR = "http";
	
	// ====================== TAB CATEGORIES ID =======================
	public static final int CATEGORY_HOME					= 1;
	public static final int CATEGORY_HOME_INTRO				= 12;
	public static final int CATEGORY_FREE					= 10;
	public static final int CATEGORY_UPDATE					= 11;
	public static final int CATEGORY_MODEL					= 2;
	public static final int CATEGORY_MODEL_DETAL			= 21;
	public static final int CATEGORY_MODEL_DETAL_ALBUM		= 211;
	public static final int CATEGORY_MODEL_DETAL_VIDEO		= 212;
	public static final int CATEGORY_MODEL_DETAL_EVENT		= 213;
	public static final int CATEGORY_MODEL_DETAL_RELATION	= 214;
	public static final int CATEGORY_VIDEO					= 3;
	public static final int CATEGORY_VIDEO_DETAIL			= 31;
	public static final int CATEGORY_ALBUM					= 4;
	public static final int CATEGORY_ALBUM_DETAIL			= 41;
	public static final int CATEGORY_NEWS					= 5;
	public static final int CATEGORY_STORY					= 6;
	public static final int CATEGORY_EVENT					= 7;
	public static final int CATEGORY_USER_INFO				= 8;
	public static final int CATEGORY_SEARCH					= 9;
	
	// ====================== TAB MODE =======================
	public static final int TAB_MODE_ALL = 0;
	public static final int TAB_MODE_NEW = 1;
	public static final int TAB_MODE_HOT = 2;
	public static final int TAB_MODE_TOP = 3;

	public static final int TAB_MODE_USER_INFO = 1;
	public static final int TAB_MODE_USER_HISTORY = 2;
	public static final int TAB_MODE_EDIT_INFO = 3;
	public static final int TAB_MODE_MESSAGE_INFO = 4;
	
	// ====================== TAB MODE ALBUM DETAIL =======================
	public static final int TAB_MODE_ALBUM_INTRODUCTION = 1;
	public static final int TAB_MODE_ALBUM_SUGGESTION = 2;
	public static final int TAB_MODE_ALBUM_COMMENT = 3;
	
	// ====================== TAB MODE SEARCH =======================
	public static final int SEARCH_TYPE_MODEL = 2;
	public static final int SEARCH_TYPE_VIDEO = 1;
	public static final int SEARCH_TYPE_ALBUM = 3;
	public static final int SEARCH_TYPE_NEWS  = 4;
	public static final int SEARCH_TYPE_STORY = 5;
	public static final int SEARCH_TYPE_EVENT = 6;
	
	public static final int TAB_VIEW_SEARCH_MODEL = 0;
	public static final int TAB_VIEW_SEARCH_VIDEO = 1;
	public static final int TAB_VIEW_SEARCH_ALBUM = 2;
	public static final int TAB_VIEW_SEARCH_NEWS  = 3;
	public static final int TAB_VIEW_SEARCH_STORY = 4;
	public static final int TAB_VIEW_SEARCH_EVENT = 5;
		
	// ====================== ARTICLE MODE =======================
	public static final int ARTICLE_MODE_NEWS = 1;		// Tin tuc
	public static final int ARTICLE_MODE_STORY = 2;	// Cau chuyen
	public static final int ARTICLE_MODE_EVENT = 3;		// Su kien
	
	// ====================== ADAPTER VIDEO_TYPE BY SCREEN =======================
	public static final int ADAPTER_VIDEO_NORMAL = 1;
	public static final int ADAPTER_VIDEO_MODEL = 2;

	// ====================== COMMENT TYPE =======================
	public static final int COMMENT_TYPE_MODEL = 1;
	public static final int COMMENT_TYPE_ALBUM = 2;
	public static final int COMMENT_TYPE_VIDEO = 3;

	// ====================== RELATION TYPE =======================
	public static final int RELATION_TYPE_VIDEO = 1;
	public static final int RELATION_TYPE_MODEL = 2;
	public static final int RELATION_TYPE_ALBUM = 3;
	public static final int RELATION_TYPE_NEWS  = 4;
	public static final int RELATION_TYPE_STORY = 5;
	public static final int RELATION_TYPE_EVENT = 6;
	
	
	//Bug #228 - start
	public static final String PARAM_RESPONSE_AMOUNT = "amount";
	//Bug #228 - end
}
